<%layout("/common.html"){%>
<div class="box-header with-border">
	<div class="box-title">
		<i class="fa fa-user-o" style="font-size:12px;color:#6495ED;padding:0px 7px 0px 5px;"></i>
		<i style="font-size:16px">新增部门</i>
		<li class="long-gray-underline"></li>
	</div>
	<div class="box-title">
		<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">基本信息</i>
		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
		<li class="short-gray-underline"></li>
	</div>
</div>
<div class="form-content">
	<div class="form-horizontal" id="form">
		<input type="hidden" id="id" value="${menu.id}">
		<!-- <input type="hidden" id="deptId" value=""> -->
		<input type="hidden" id="parentId">
		
		
		<div class="row">			
			<div class="col-xs-6">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">
						 上级菜单：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="parentName" iconClass="btn-input-search" icon="fa-search" value="${menu.parentName}" onclick="addParentLayer('/menu/tree/','菜单选择树')"/>
	                </div>
                </div>
            </div>
            <div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							 菜单编号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<!-- <input type="text" id="userName" name="userName" value="" maxlength="32" class="form-control required " aria-required="true"> -->
						<#form:input id="number" value="${menu.number}"/>
		                    
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							* 菜单名称：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="name" class="required" value="${menu.name}"/>
		                    
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							请求路径：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="href" value="${menu.href}"/>
		                    
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class="required "></span> 系统菜单：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<select class="input-sm form-control" id="sysMenu" name="sysMenu" dictType="sys_menu" defaultValue="0"></select>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							访问权限：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<!-- <input type="text" id="phone" name="phone" value="" maxlength="32" class="form-control required " aria-required="true"> -->
						<#form:input id="permission" value="${menu.permission}"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="box-title">
			<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">相关信息</i>
			<li class="short-gray-underline"></li>
		</div>
		
		<div class="row">
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							 图&nbsp&nbsp&nbsp&nbsp&nbsp标：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<!-- <input type="text" id="userName" name="userName" value="" maxlength="32" class="form-control required " aria-required="true"> -->
						<#form:input id="icon" value="${menu.icon}"/>
		                    
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							 备&nbsp&nbsp&nbsp&nbsp&nbsp注：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<textarea class="input-xxxlarge" name="remark" id="remark" value="${menu.remark}"></textarea>
					</div>
				</div>
			</div>
		</div>
		
		
		<div class="row">
			<div class="button">
				<#form:button class="btn btn-info" name="提交" id="ensure" icon="fa-check" onclick="submitPage('/menu/edit')"/>
				<#form:button class="btn btn-default" name="关闭" id="cancel" icon="fa-mail-reply-all" onclick="closePage()"/>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="${ctxPath}/js/system/menu/menu.js"></script>
<%}%>